﻿using SqlSugar;
namespace YOUYOU.Models.Entities.DBModels
{
    /// <summary>
    /// 药物疗法干预表
    ///</summary>
    [SugarTable("management_drug")]
    public class Managementdrug
    {
        /// <summary>
        /// 自增id 
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 患者ID 
        ///</summary>
        [SugarColumn(ColumnName = "PatientId")]
        public string PatientId { get; set; }
        /// <summary>
        /// 药物名称 
        ///</summary>
        [SugarColumn(ColumnName = "MedicineName")]
        public string? MedicineName { get; set; }
        /// <summary>
        /// 规格 
        ///</summary>
        [SugarColumn(ColumnName = "Specification")]
        public string? Specification { get; set; }
        /// <summary>
        /// 用法 
        ///</summary>
        [SugarColumn(ColumnName = "Usage")]
        public string? Usage { get; set; }
        /// <summary>
        /// 用量 
        ///</summary>
        [SugarColumn(ColumnName = "Dosage")]
        public int Dosage { get; set; }
        /// <summary>
        /// 单位 
        ///</summary>
        [SugarColumn(ColumnName = "Unit")]
        public string? Unit { get; set; }
        public int? ArchivesId { get; set; }
    }
}
